package com.cyz.controller;

import java.util.Arrays;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.cyz.entity.StudenttopicEntity;
import com.cyz.service.StudenttopicService;




/**
 *
 *
 * @author chenyizhen
 * @email
 * @date 2023-12-26 14:18:30
 */
@RestController
@RequestMapping("user/studenttopic")
public class StudenttopicController {
    @Autowired
    private StudenttopicService studenttopicService;

    /**
     * 列表
     */
//    @RequestMapping("/list")
//    //@RequiresPermissions("user:studenttopic:list")
//    public R list(@RequestParam Map<String, Object> params){
//        PageUtils page = studenttopicService.queryPage(params);
//
//        return R.ok().put("page", page);
//    }
//
//
//    /**
//     * 信息
//     */
//    @RequestMapping("/info/{id}")
//    public R info(@PathVariable("id") Integer id){
//		StudenttopicEntity studenttopic = studenttopicService.getById(id);
//
//        return R.ok().put("studenttopic", studenttopic);
//    }
//
//    /**
//     * 保存
//     */
//    @RequestMapping("/save")
//    public R save(@RequestBody StudenttopicEntity studenttopic){
//		studenttopicService.save(studenttopic);
//
//        return R.ok();
//    }
//
//    /**
//     * 修改
//     */
//    @RequestMapping("/update")
//    public R update(@RequestBody StudenttopicEntity studenttopic){
//		studenttopicService.updateById(studenttopic);
//
//        return R.ok();
//    }
//
//    /**
//     * 删除
//     */
//    @RequestMapping("/delete")
//    public R delete(@RequestBody Integer[] ids){
//		studenttopicService.removeByIds(Arrays.asList(ids));
//
//        return R.ok();
//    }

}
